word = input()

rw = word[-1::-1]

print(rw)